package com.dongdongshop.api;

import com.dongdongshop.data.Result;
import com.dongdongshop.dto.CartDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient("dongdongshop-cart-service")
public interface CartServiceApi {
    //查询购物车
    @PostMapping("/cart/selectCart")
    Result<List<CartDTO>> selectCart(@RequestHeader String AutharizeToken);

    //删除购物车
    @PostMapping("/cart/delCart")
    Result delCart(@RequestHeader String AutharizeToken);
}
